package com.shr.exam.netease;

import java.util.Scanner;

public class Main1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in) ;
		int count = sc.nextInt() ;
		for(int i = 0;i<count;i++){
			int countNum = sc.nextInt() ;
			int[] array = new int[countNum];
			for(int j = 0;j<countNum;j++){
				array[j] = sc.nextInt() ;
			}
			int numEven = 0;
			int num2 = 0 ;
			int num4 = 0;
			for(int j = 0;j<array.length;j++){
				if(array[j] % 2 != 0)
					numEven++;
				else if(array[j] % 4 == 0)
					num4 ++;
				else if(array[j] % 2 == 0)
					num2++;
			}
			int cant = 0;
			cant += num2 % 2;
			cant += numEven;
			if(num4 >= cant - 1)
				System.out.println("Yes");
			else System.out.println("No");
		}
		sc.close();
	}
}
